#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QDebug>
#include <QCloseEvent>
#include <QKeyEvent>
#include <QMouseEvent>
#include <QTimerEvent>
#include <QMessageBox>
#include <QEvent>


namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
protected:
    void keyPressEvent(QKeyEvent *event);
    void mousePressEvent(QMouseEvent *qme);
    void closeEvent(QCloseEvent* qce);
    bool event(QEvent* qe);
    void timerEvent(QTimerEvent* qte);
    bool eventFilter(QObject *watched, QEvent *event);


private:
    Ui::MainWindow *mainWindow;
    int timerId;
};

#endif // MAINWINDOW_H
